home *** CD-ROM | disk | FTP | other *** search
/ PC Users 1999 April / Cd Pc Users extra 19 abril 1999.iso / Prog / Inst / comp / Form1.frm (.txt) < prev   
Encoding:
Visual Basic Form  |  1999-02-13  |  1.3 KB  |  44 lines

  1. VERSION 5.00
  2. Begin VB.Form Form1 
  3.    Caption         =   "Form1"
  4.    ClientHeight    =   5235
  5.    ClientLeft      =   1965
  6.    ClientTop       =   1170
  7.    ClientWidth     =   3030
  8.    LinkTopic       =   "Form1"
  9.    PaletteMode     =   1  'UseZOrder
  10.    ScaleHeight     =   5235
  11.    ScaleWidth      =   3030
  12.    Begin VB.CommandButton Command1 
  13.       Caption         =   "Add Control"
  14.       Height          =   495
  15.       Left            =   1680
  16.       TabIndex        =   1
  17.       Top             =   120
  18.       Width           =   1215
  19.    End
  20.    Begin VB.TextBox Text1 
  21.       Height          =   285
  22.       Index           =   0
  23.       Left            =   120
  24.       TabIndex        =   0
  25.       Text            =   "Initial Control"
  26.       Top             =   120
  27.       Width           =   1215
  28.    End
  29. Attribute VB_Name = "Form1"
  30. Attribute VB_GlobalNameSpace = False
  31. Attribute VB_Creatable = False
  32. Attribute VB_PredeclaredId = True
  33. Attribute VB_Exposed = False
  34. Option Explicit
  35. Private Sub Command1_Click()
  36. Dim index As Integer
  37.     index = Text1.Count
  38.     Load Text1(index)
  39.     Text1(index).Top = Text1(index - 1).Top + _
  40.         Text1(index - 1).Height + 30
  41.     Text1(index).Text = "Text1(" & Format$(index) & ")"
  42.     Text1(index).Visible = True
  43. End Sub
  44.